import request from '@/utils/request.js';
// 停车场配置列表相关;

// 获取车场列表
export function parkList(data) {
    // 车场列表
    return request({
        url: '/parkingLot/page',
        method: 'get',
        params:data
    });
}
export function saveParkInfo(data) {
    // 新增
    return request({
        url: '/parkingLot/saveParkingLotBaseInfo',
        method: 'post',
        data
    });
}

export function parkLotById(data) {
    // 查询车场列表详情
    return request({
        url: '/parkingLot/byId',
        method: 'get',
        params: data
    });
}

export function upDateParkInfo(data) {
    // 编辑车场信息
    return request({
        url: '/parkingLot/updParkingLotBaseInfo',
        method: 'post',
        data
    });
}
// 新增通道信息;
export function saveDrivewayInfo(data) {
    return request({
        url: '/parkingLot/saveParkingLotDrivewayInfo',
        method: 'post',
        data
    });
}

// 编辑通道信息;
export function updateDrivewayInfo(data) {
    return request({
        url: '/parkingLot/updParkingLotDrivewayInfo',
        method: 'post',
        data
    });
}
// 查看通道信息
export function drivewayInfoById(data) {
    return request({
        url: '/parkingLot/get-driveway-info-by-parking-lot-id',
        method: 'get',
        params:data
    });
}
